//
//  HBWNetDataManager.h
//  HBW
//
//  Created by Mac on 16/3/16.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
@class UMSocialAccountEntity;

#define HostServer @"http://c.apiplus.net"

//#define LotteryStatusAPI @"http://c.apiplus.net/curly.do"
#define LotteryDateAPI @"http://www.bcaiweb.com/draw/app"
//#define LotteryNewAPI @"http://c.apiplus.net/newly.do"
#define CountResoureAPI @"http://www.bcaiweb.com/draw/app"
#define AfficheAPI@"http://www.bcaiweb.com/draw/app"

#define NetMgr [HBWNetDataManager shareSessionManager]

/** 请求成功回调类型 */
typedef void(^requestSuccess)(id responeseObj);
/** 请求失败回调类型 */
typedef void(^requestFaluier)(NSError *error);
/** 请求进度回调类型 */
typedef void(^progress)(NSProgress *downloadprogress);


@interface HBWNetDataManager : NSObject
/** 创建一个实例 */
+ (instancetype)shareSessionManager;

/** 历史开奖 token=d4ecb54a5a724b55&code=cqssc&date=2016-03-29
 *
 */
- (void)HistoryLotteryWithParams:(NSDictionary *)patams
                       Success:(requestSuccess)success
                       failuer:(requestFaluier)failuer;


///** 历史 新开奖
// *
// */
//- (void)NewHistoryLotteryWithParams:(NSDictionary *)patams
//                         Success:(requestSuccess)success
//                         failuer:(requestFaluier)failuer;


// 首页开奖
- (void)homeLotterySuccess:(requestSuccess)success
                   failuer:(requestFaluier)failuer;

// 统计资讯1
- (void)countResoureWithParam:(NSMutableDictionary *)param
                      Success:(requestSuccess)success
                      failuer:(requestFaluier)failuer;

// 系统资讯2
- (void)countResoureHistorySuccess:(requestSuccess)success
                           failuer:(requestFaluier)failuer;

// 关于我们
- (void)aboutMeSuccess:(requestSuccess)success
               failuer:(requestFaluier)failuer;

// 反馈
- (void)feedbackWithParam:(NSMutableDictionary *)param
                      Success:(requestSuccess)success
                      failuer:(requestFaluier)failuer;

// 广告图
- (void)advertImgWithParam:(NSMutableDictionary *)param
                   Success:(requestSuccess)success
                   failuer:(requestFaluier)failuer;
//公告
- (void)affichetextWithParam:(NSMutableDictionary *)param
                   Success:(requestSuccess)success
                   failuer:(requestFaluier)failuer;


@end
